// vite.config.ts
import { resolve } from "node:path";
import vue from "file:///Users/shaoshaoman/%E5%85%AC%E5%8F%B8%E9%A1%B9%E7%9B%AE/meereen-server/node_modules/.pnpm/@vitejs+plugin-vue@5.1.3_vite@5.4.4_@types+node@20.16.5_less@4.2.0_terser@5.34.1__vue@3.5.4_typescript@5.4.5_/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import vueJsx from "file:///Users/shaoshaoman/%E5%85%AC%E5%8F%B8%E9%A1%B9%E7%9B%AE/meereen-server/node_modules/.pnpm/@vitejs+plugin-vue-jsx@4.0.1_vite@5.4.4_@types+node@20.16.5_less@4.2.0_terser@5.34.1__vue@3.5.4_typescript@5.4.5_/node_modules/@vitejs/plugin-vue-jsx/dist/index.mjs";
import vueDevTools from "file:///Users/shaoshaoman/%E5%85%AC%E5%8F%B8%E9%A1%B9%E7%9B%AE/meereen-server/node_modules/.pnpm/vite-plugin-vue-devtools@7.4.5_rollup@4.21.2_vite@5.4.4_@types+node@20.16.5_less@4.2.0_terser_l4m27yn6yj4tyizol2zj4qv4ou/node_modules/vite-plugin-vue-devtools/dist/vite.mjs";
import { createSvgIconsPlugin } from "file:///Users/shaoshaoman/%E5%85%AC%E5%8F%B8%E9%A1%B9%E7%9B%AE/meereen-server/node_modules/.pnpm/vite-plugin-svg-icons@2.0.1_vite@5.4.4_@types+node@20.16.5_less@4.2.0_terser@5.34.1_/node_modules/vite-plugin-svg-icons/dist/index.mjs";
import topLevelAwait from "file:///Users/shaoshaoman/%E5%85%AC%E5%8F%B8%E9%A1%B9%E7%9B%AE/meereen-server/node_modules/.pnpm/vite-plugin-top-level-await@1.4.4_rollup@4.21.2_vite@5.4.4_@types+node@20.16.5_less@4.2.0_terser@5.34.1_/node_modules/vite-plugin-top-level-await/exports/import.mjs";
import { loadEnv } from "file:///Users/shaoshaoman/%E5%85%AC%E5%8F%B8%E9%A1%B9%E7%9B%AE/meereen-server/node_modules/.pnpm/vite@5.4.4_@types+node@20.16.5_less@4.2.0_terser@5.34.1/node_modules/vite/dist/node/index.js";
var __vite_injected_original_dirname = "/Users/shaoshaoman/\u516C\u53F8\u9879\u76EE/meereen-server";
var CWD = process.cwd();
var vite_config_default = ({ command, mode }) => {
  const { VITE_BASE_URL, VITE_DROP_CONSOLE, VITE_MOCK_IN_PROD } = loadEnv(mode, CWD);
  const isDev = command === "serve";
  const isBuild = command === "build";
  return {
    base: "./",
    resolve: {
      alias: [
        {
          find: "@",
          replacement: resolve(__vite_injected_original_dirname, "./src")
        }
      ]
    },
    plugins: [
      vue(),
      vueJsx(),
      vueDevTools(),
      topLevelAwait(),
      createSvgIconsPlugin({
        // Specify the icon folder to be cached
        iconDirs: [resolve(CWD, "src/assets/icons")],
        // Specify symbolId formatc
        symbolId: "svg-icon-[dir]-[name]"
      })
    ],
    build: {
      minify: "esbuild",
      chunkSizeWarningLimit: 2e3,
      rollupOptions: {
        output: {
          manualChunks(id) {
            if (id.includes("/src/locales/helper.ts")) {
              return "antdv";
            } else if (id.includes("node_modules/ant-design-vue/")) {
              return "antdv";
            } else if (/node_modules\/(vue|vue-router|pinia)\//.test(id)) {
              return "vue";
            }
          }
        },
        onwarn(warning, rollupWarn) {
          if (warning.code === "CYCLIC_CROSS_CHUNK_REEXPORT" && warning.exporter?.includes("src/api/")) {
            return;
          }
          rollupWarn(warning);
        }
      }
    },
    server: {
      host: true
    }
  };
};
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCIvVXNlcnMvc2hhb3NoYW9tYW4vXHU1MTZDXHU1M0Y4XHU5ODc5XHU3NkVFL21lZXJlZW4tc2VydmVyXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ZpbGVuYW1lID0gXCIvVXNlcnMvc2h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yIGltcG9ydHNcbiAgICAgICAgICAgIGlmIChpZC5pbmNsdWRlcygnL3NyYy9sb2NhbGVzL2hlbHBlci50cycpKSB7XG4gICAgICAgICAgICAgIHJldHVybiAnYW50ZHYnXG4gICAgICAgICAgICB9IGVsc2UgaWYgKGlkLmluY2x1ZGVzKCdub2RlX21vZHVsZXMvYW50LWRlc2lnbi12dWUvJykpIHtcbiAgICAgICAgICAgICAgcmV0dXJuICdhbnRkdidcbiAgICAgICAgICAgIH0gZWxzZSBpZiAoL25vZGVfbW9kdWxlc1xcLyh2dWV8dnVlLXJvdXRlcnxwaW5pYSlcXC8vLnRlc3QoaWQpKSB7XG4gICAgICAgICAgICAgIHJldHVybiAndnVlJ1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAgb253YXJuKHdhcm5pbmcsIHJvbGx1cFdhcm4pIHtcbiAgICAgICAgICAvLyBpZ25vcmUgY2lyY3VsYXIgZGVwZW5kZW5jeSB3YXJuaW5nXG4gICAgICAgICAgaWYgKFxuICAgICAgICAgICAgd2FybmluZy5jb2RlID09PSAnQ1lDTElDX0NST1NTX0NIVU5LX1JFRVhQT1JUJyAmJlxuICAgICAgICAgICAgd2FybmluZy5leHBvcnRlcj8uaW5jbHVkZXMoJ3NyYy9hcGkvJylcbiAgICAgICAgICApIHtcbiAgICAgICAgICAgIHJldHVyblxuICAgICAgICAgIH1cbiAgICAgICAgICByb2xsdXBXYXJuKHdhcm5pbmcpXG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9LFxuXG4gICAgc2VydmVyOntcbiAgICAgIGhvc3Q6IHRydWUsXG5cblxuICAgIH1cbiAgfTtcbn07XG4iXSwKICAibWFwcGluZ3MiOiAiO0FBRUEsU0FBUyxlQUFlO0FBRXhCLE9BQU8sU0FBUztBQUNoQixPQUFPLFlBQVk7QUFDbkIsT0FBTyxpQkFBaUI7QUFHeEIsU0FBUyw0QkFBNEI7QUFFckMsT0FBTyxtQkFBbU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